#include <iostream>
#include <string>
#include <vector>
#include "assert.h"
#include "split_string.h"
#include "split_string_test.h"
#include <algorithm>
using std::string;
using std::vector;
using std::cout;
using std::endl;

void SplitStringTest::testSplitNormal()
{
	
	string testLine = "name|like bb|:::";
     vector<string> oriResVec;
     vector<string> testResVec;
    
     oriResVec.push_back(string("name"));
     oriResVec.push_back(string("like bb"));
     oriResVec.push_back(string(":::"));
    
     testResVec = split(testLine, '|');

     assertEqual(testResVec, oriResVec);
    
     cout << "testSplitNormal() OK!" << endl;

   	
}

void SplitStringTest::testSplitBlank()
{
//	string testLine="";
//	vector<string> ResVec;
//	vector<string> testResvec;
//	
//	ResVec.push_back(string(""));
//	
//	testResvec = split(testLine,'|');
//	
//	assertEqual(testResvec,ResVec);
//	
//	cout << "testSplitBlank() ok" <<endl;
	
		
}



